namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 备份 - SKU信息与产品信息绑定
    /// </summary>
    public DbSet<POBakProdSkuProduct> BakProdSkuProducts { get; set; }
}

/// <summary>
/// 备份 - SKU信息与产品信息绑定
/// 表[bak_prod_sku_product]
/// </summary>
[Table("bak_prod_sku_product")]
public class POBakProdSkuProduct
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[bak_prod_sku_product.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// SKU_ID
    /// [bak_prod_sku_product.sku_id)]
    /// </summary>
    [Column("sku_id")]
    public long? SkuId { get; set; }
    /// <summary>
    /// 顺序号
    /// [bak_prod_sku_product.prod_index)]
    /// </summary>
    [Column("prod_index")]
    public int? ProdIndex { get; set; }
    /// <summary>
    /// 产品ID
    /// [bak_prod_sku_product.product_id)]
    /// </summary>
    [Column("product_id")]
    public long? ProductId { get; set; }
    /// <summary>
    /// 物料ID
    /// [bak_prod_sku_product.material_id)]
    /// </summary>
    [Column("material_id")]
    public long? MaterialId { get; set; }
    /// <summary>
    /// 生产日期
    /// [bak_prod_sku_product.md_time)]
    /// </summary>
    [Column("md_time")]
    public DateTime? MdTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [bak_prod_sku_product.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [bak_prod_sku_product.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [bak_prod_sku_product.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// [bak_prod_sku_product.remark_memo)]
    /// </summary>
    [Column("remark_memo")]
    public string RemarkMemo { get; set; }
    /// <summary>
    /// [bak_prod_sku_product.back_time)]
    /// </summary>
    [Column("back_time")]
    public DateTime? BackTime { get; set; }
}
